<h1>Merci de choisir BagaB pour vos &eacute;v&egrave;nements</h1>
<strong>Num&eacute;ro de r&eacute;servation: <?php echo $order['Order']['id']?></strong><br>
Veuillez conserver ce num&eacute;ro, c'est une r&eacute;f&eacute;rence qui pourra vous &ecirc;tre utile.
<div>Date d'emprunt:<?php echo CakeTime::format('F jS, Y',$order['Order']['bookingstartdate']);?><div>
<div>Date de retour:<?php echo CakeTime::format('F jS, Y',$order['Order']['bookingenddate']);?><div>
<table>
	<tr style='vertical-align:top'>
	<td>
		<h3>Contacts</h3>
		<table style='border-top:1px #e9e9e9 dotted'>
		<tr><td style='text-align:right'>Nom:</td> <td><i><?php echo (isset($order['Order']['title'])?$order['Order']['title']:'').' '.$order['Order']['firstname'].' '.$order['Order']['lastname']?></i></td></tr>
		<?php if(!empty($order['Order']['associatenumber'])){
			echo '<tr><td style=\'text-align:right\'>Adh&eacute;rent :</td><td><i>'.$order['Order']['associatenumber'].'</i></td></tr>';} ?>
		<tr><td style='text-align:right'>Email:</td> <td><i><?php echo $order['Order']['email']?></i></td></tr>
		<tr><?php echo !empty($order['Order']['phonenumber'])?'<td style=\'text-align:right\'>T&eacute;l&eacute;phone:</td> <td><i>'.$order['Order']['phonenumber'].'</i></td>':''?></tr>
		</table>		
	</td>
	<?php if(isset($order['Billingaddress'])&&!empty($order['Billingaddress']['firstname'])&&!empty($order['Billingaddress']['lastname'])&&!empty($order['Billingaddress']['line1'])&&!empty($order['Billingaddress']['postcode'])&&!empty($order['Billingaddress']['city'])):?>
	<td style='padding-left:40px'>
		<h3>Adresse de Facturation</h3>
		<table style='border-top:1px #e9e9e9 dotted'>
		<tr><td style='text-align:right'>Nom</td><td><i><?php echo (isset($order['Billingaddress']['title'])?$order['Billingaddress']['title']:'').' '.$order['Billingaddress']['firstname'].' '.$order['Billingaddress']['lastname']?></i></td></tr>
		<tr><td style='text-align:right'>Ligne 1:</td> <td><i><?php echo $order['Billingaddress']['line1']?></i></td></tr>
		<?php echo (!empty($order['Billingaddress']['line2'])?'<tr><td style=\'text-align:right\'>Ligne 2:</td> <td><i>'.$order['Billingaddress']['line2'].'</i></td></tr>':'');?>
		<?php echo (!empty($order['Billingaddress']['line3'])?'<tr><td style=\'text-align:right\'>Ligne 3:</td> <td><i>'.$order['Billingaddress']['line3'].'</i></td></tr>':'');?>
		<tr><td style='text-align:right'>Code Postal:</td> <td><i><?php echo $order['Billingaddress']['postcode'];?></i></td></tr>
		<tr><td style='text-align:right'>Ville:</td> <td><i><?php echo $order['Billingaddress']['city'];?></i></td></tr>
		<?php echo (!empty($order['Billingaddress']['country'])?'<tr><td style=\'text-align:right\'>Ville:</td> <td><i>'.$order['Billingaddress']['country'].'</i></td></tr>':'');?>
		</table>
	</td>
	<?php endif;?>
	<?php if(isset($order['Shippingaddress'])&&!empty($order['Shippingaddress']['firstname'])&&!empty($order['Shippingaddress']['lastname'])&&!empty($order['Shippingaddress']['line1'])&&!empty($order['Shippingaddress']['postcode'])&&!empty($order['Shippingaddress']['city'])):?>
	<td style='padding-left:40px'>
		<h3>Adresse de Livraison</h3>
		<table style='border-top:1px #e9e9e9 dotted'>
		<tr><td style='text-align:right'>Nom</td><td><i><?php echo (isset($order['Shippingaddress']['title'])?$order['Shippingaddress']['title']:'').' '.$order['Shippingaddress']['firstname'].' '.$order['Shippingaddress']['lastname']?></i></td></tr>
		<tr><td style='text-align:right'>Ligne 1:</td> <td><i><?php echo $order['Shippingaddress']['line1']?></i></td></tr>
		<?php echo (!empty($order['Shippingaddress']['line2'])?'<tr><td style=\'text-align:right\'>Ligne 2:</td> <td><i>'.$order['Shippingaddress']['line2'].'</i></td></tr>':'');?>
		<?php echo (!empty($order['Shippingaddress']['line3'])?'<tr><td style=\'text-align:right\'>Ligne 3:</td> <td><i>'.$order['Shippingaddress']['line3'].'</i></td></tr>':'');?>
		<tr><td style='text-align:right'>Code Postal:</td> <td><i><?php echo $order['Shippingaddress']['postcode'];?></i></td></tr>
		<tr><td style='text-align:right'>Ville:</td> <td><i><?php echo $order['Shippingaddress']['city'];?></i></td></tr>
		<?php echo (!empty($order['Shippingaddress']['country'])?'<tr><td style=\'text-align:right\'>Pays:</td> <td><i>'.$order['Shippingaddress']['country'].'</i></td></tr>':'');?>
		</table>
	</td>
	<?php endif;?>
	</tr>
</table>
<table style='width:80%;margin-top:50px'>
<?php 
$ordersproducts = $order['OrdersProduct'];
echo $this->ProductBuilder->displayProductTableHeader(false);
foreach($ordersproducts as $orderproduct){
	echo $this->ProductBuilder->displayProductSummaryTableRow($orderproduct);
}
?>
</table>